<%@ page contentType="text/html;charset=utf-8"%>

<%
        //使session失效
        session.invalidate();
    
	    //清空cookie，保留2周操作将失效
	    Cookie[] cookies=request.getCookies();
		 if(cookies!=null){   
		     for(int   i=0;i<cookies.length;i++){
		     String sp = cookies[i].getName();
		     if(sp!=null&&"userinfologinoper".indexOf(sp)>=0) {   
		          cookies[i].setMaxAge(0);   
		          cookies[i].setValue(null);
		          response.addCookie(cookies[i]);   
		      }   
		    }    
		} 
    
	//out.print("{success:true,url:\"default.html\"}");
    //response.setHeader("refresh","0;URL=default.html");
    response.sendRedirect("default.html");
    
 %>

